package com.Others;

import android.graphics.Rect;

import com.badlogic.androidgames.framework.gl.Animation;
import com.badlogic.androidgames.framework.gl.SpriteBatcher;
import com.badlogic.androidgames.framework.gl.TextureRegion;
import com.badlogic.androidgames.framework.math.Circle;
import com.badlogic.androidgames.framework.math.Rectangle;
import com.badlogic.androidgames.framework.math.Vector2;

public abstract class GameObject
{
	
	public Vector2 position;
	public Rectangle rectCollider;
	public Circle circleCollider;
	public String tag;
	public TextureRegion image;
	public Animation animation;
	
	public GameObject (float x, float y, float w, float h)
	{
		position = new Vector2(x,y);
		tag = "undefined";
		rectCollider = new Rectangle(position.x - w * 0.5f, this.position.y - h * 0.5f , w,  h);
	}
	
	public GameObject()
	{
		
	}
	
	public void Update(float deltaTime)
	{
		rectCollider.lowerLeft.set(position).sub(rectCollider.width * 0.5f, rectCollider.height * 0.5f);
	}
	
	public abstract void Draw(SpriteBatcher batcher);
}
